class AuspiciousDayListModel {
  bool? success;
  int? code;
  String? message;
  AuspiciousDayResultModel? data;

  AuspiciousDayListModel({this.success, this.code, this.message, this.data});

  AuspiciousDayListModel.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    code = json['code'];
    message = json['message'];
    data = json['data'] != null ? AuspiciousDayResultModel.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['success'] = success;
    data['code'] = code;
    data['message'] = message;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class AuspiciousDayResultModel {
  int? total;
  int? currentPage;
  List<AuspiciousDayItemModel>? data;

  AuspiciousDayResultModel({this.total, this.currentPage, this.data});

  AuspiciousDayResultModel.fromJson(Map<String, dynamic> json) {
    total = json['total'];
    currentPage = json['currentPage'];
    if (json['data'] != null) {
      data = <AuspiciousDayItemModel>[];
      json['data'].forEach((v) {
        data!.add(AuspiciousDayItemModel.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['total'] = total;
    data['currentPage'] = currentPage;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class AuspiciousDayItemModel {
  String? date;
  String? lunarDate;
  String? yi;
  String? ji;
  String? chong;
  String? sha;
  String? zhengchong;
  String? taishen;
  String? zhixing;
  String? jishenyiqu;
  String? xiongshenyiji;

  AuspiciousDayItemModel(
      {this.date,
        this.lunarDate,
        this.yi,
        this.ji,
        this.chong,
        this.sha,
        this.zhengchong,
        this.taishen,
        this.zhixing,
        this.jishenyiqu,
        this.xiongshenyiji});

  AuspiciousDayItemModel.fromJson(Map<String, dynamic> json) {
    date = json['date'];
    lunarDate = json['lunarDate'];
    yi = json['宜'];
    ji = json['忌'];
    chong = json['冲'];
    sha = json['煞'];
    zhengchong = json['正冲'];
    taishen = json['胎神'];
    zhixing = json['值星'];
    jishenyiqu = json['吉神宜趋'];
    xiongshenyiji = json['凶神宜忌'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['date'] = date;
    data['lunarDate'] = lunarDate;
    data['yi'] = yi;
    data['ji'] = ji;
    data['chong'] = chong;
    data['sha'] = sha;
    data['zhengchong'] = zhengchong;
    data['taishen'] = taishen;
    data['zhixing'] = zhixing;
    data['jishenyiqu'] = jishenyiqu;
    data['xiongshenyiji'] = xiongshenyiji;
    return data;
  }
}
